#ifndef __INETADDRESS_HPP__
#define __INETADDRESS_HPP__
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <string>

namespace wd
{
using std::string;

class InetAddress
{
public:
    InetAddress(const string &,unsigned short);
    InetAddress(struct sockaddr_in);

    string ip()const;
    unsigned short port()const;
    struct sockaddr_in*getSockAddrPtr();

private:

private:
    struct sockaddr_in _addr;
};

}//end of namespace



#endif // __INETADDRESS_HPP__

